<include file="Public:header" />
<div class="pad-lr-10">
    <form id="myform" name="myform" action="{:u('member/delete')}" method="post" onsubmit="return check();">
    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=50>{$Think.lang.orders}</th>
                <th width=30><input type="checkbox" value="" id="check_box" onclick="selectall('uid[]');"></th>
                <th width=200>{$Think.lang.user_id}</th>
                <th width=200>{$Think.lang.nick_name}</th>
      			<th>{$Think.lang.email} :</th>
                <th width=180>{$Think.lang.type}</th>
                <th>{$Think.lang.last_time}</th>
                <th>{$Think.lang.operations_manage}</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="members_list" id="val" >
        <tr>
        	<td align="center">{$val.key}</td>
            <td align="center"><input type="checkbox" value="{$val.uid}" name="uid[]"></td>
            <td align="center">{$val.uid}</td>
            <td align="center">{$val.nickname}</td>
      		<td align="center">{$val.email}</td>
            <td align="center">{$val.type}</td>
            <td align="center">{$val.last_time|date="Y-m-d H:i:s",###}</td>
            <td align="center"><a href="{:u('member/address_list', array('uid'=>$val['uid']))}">{$Think.lang.consign_address}</a> | <a href="javascript:edit({$val.uid},'{$val.nickname}')">{$Think.lang.edit}</a> | <a href="{:u('member/delete', array('uid'=>$val['uid']))}">{$Think.lang.delete}</a></td>
        </tr>
        </volist>
    	</tbody>
    </table>

    <div class="btn">
    <label for="check_box">{$Think.lang.select_all}/{$Think.lang.cancel}</label>
    <input type="submit" class="button" name="dosubmit" value="{$Think.lang.delete}" onclick="return confirm('{$Think.lang.sure_delete}')"/>
    <div id="pages">{$page}</div>
    </div>

    
    </div>
    </form>
</div>
<script language="javascript">
function edit(uid, name) {
	var lang_edit = "{$Think.lang.edit}";
	window.top.art.dialog({id:'edit'}).close();
	window.top.art.dialog({title:lang_edit+'--'+name,id:'edit',iframe:'?m=member&a=edit&uid='+uid,width:'460',height:'230'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;d.document.getElementById('dosubmit').click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
}

var lang_user_name = "{$Think.lang.user_name}";
function check(){
	if($("#myform").attr('action') != '{:u("member/sort_order")}') {
		var ids='';
		$("input[name='uid[]']:checked").each(function(i, n){
			ids += $(n).val() + ',';
		});

		if(ids=='') {
			window.top.art.dialog({content:lang_please_select+lang_user_name,lock:true,width:'200',height:'50',time:1.5},function(){});
			return false;
		}
	}
	return true;
}
</script>
</body>
</html>